package com.atguigu.guli.service.edu.feign.fallback;

import com.atguigu.guli.common.base.result.R;
import com.atguigu.guli.service.edu.feign.VodFileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author lj on 2021/2/4.
 * @version 1.0
 */
@Service
@Slf4j
public class VodFileServiceFallBack implements VodFileService {
    @Override
    public R uploadVideo(MultipartFile file) {
        log.info("熔断保护");
        return R.error();
    }

    @Override
    public R removeVideo(String vodId) {
        log.info("熔断保护");
        return R.error();
    }

    @Override
    public R removeVideoByIdList(List<String> videoIdList) {
        log.info("熔断保护");
        return R.error();
    }
}
